package com.bstek.pms.tools.service;

import com.bstek.pms.tools.dao.UserDao;
import com.bstek.pms.tools.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LoginService {
    @Autowired
    private UserDao userDao;

    public User findUserByName(User user) {
        return userDao.findUserByName(user);

    }
}
